const joi = require('joi')

const username = joi.string().alphanum().min(1).max(10).required();
const password = joi.string().pattern(/^[\S]{6,12}$/).required();
const phone = joi.string().required()

exports.regest_schema = {
  body: {
    username,
    password,
    phone
  }
}

exports.login_schema = {
  body: {
    username,
    password
  }
}